package com.sharefang.aproject.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/7/29.
 */

public class FolderBean  implements Parcelable {
    private long createTime;

    private boolean deleted;

    private int directoryId;

    private String directoryName;

    private int userId;

    protected FolderBean(Parcel in) {
        createTime = in.readLong();
        deleted = in.readByte() != 0;
        directoryId = in.readInt();
        directoryName = in.readString();
        userId = in.readInt();
    }

    public static final Creator<FolderBean> CREATOR = new Creator<FolderBean>() {
        @Override
        public FolderBean createFromParcel(Parcel in) {
            return new FolderBean(in);
        }

        @Override
        public FolderBean[] newArray(int size) {
            return new FolderBean[size];
        }
    };

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setDeleted(boolean deleted){
        this.deleted = deleted;
    }
    public boolean getDeleted(){
        return this.deleted;
    }
    public void setDirectoryId(int directoryId){
        this.directoryId = directoryId;
    }
    public int getDirectoryId(){
        return this.directoryId;
    }
    public void setDirectoryName(String directoryName){
        this.directoryName = directoryName;
    }
    public String getDirectoryName(){
        return this.directoryName;
    }
    public void setUserId(int userId){
        this.userId = userId;
    }
    public int getUserId(){
        return this.userId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeLong(createTime);
        parcel.writeByte((byte) (deleted ? 1 : 0));
        parcel.writeInt(directoryId);
        parcel.writeString(directoryName);
        parcel.writeInt(userId);
    }
}
